package com.sikaryofficial.backend.domain.dto.resp;

import com.sikaryofficial.common.core.annotation.LocalDateTimeFormat;
import com.sikaryofficial.system.api.model.att.AttachmentResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 文章评价回复出参
 *
 * @author qinjinyuan
 * @date 2023-10-30
 */
@Getter
@Setter
@ToString
@ApiModel(value = "评价回复出参", description = "评价回复出参")
public class StoreCommentReplyDTO {

    /**
     * 创建者
     *
     */
    @ApiModelProperty(value = "创建者",  example = "xxaax")
    private String createdName;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "创建者",  example = "0")
    private Long createdBy;

    /**
     * 创建时间, 伦敦所在的时区为GMT+1，也被称为西一区
     */
    @LocalDateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间",  example = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @ApiModelProperty(value = "附件列表")
    private List<AttachmentResp> attachmentList;

    /** 评价回复ID */
    @ApiModelProperty(value = "评价回复ID",  example = "0")
    private Long storeCommentReplyId;

    /** 评价ID */
    @ApiModelProperty(value = "评价ID",  example = "0")
    private Long storeCommentId;

    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容",  example = "xxxxx")
    private String replyContent;
    /**
     * 点赞统计
     */
    @ApiModelProperty(value = "点赞统计",  example = "123")
    private Integer likesCount;

    /**
     * 是否有我的点赞
     */
    @ApiModelProperty(value = "是否有我的点赞")
    private boolean hasOwnerLikes;

    @ApiModelProperty(value = "个人图像-统一默认头像")
    private String avatar;

    /** 回复类型:0-针对评论进行回复,1-针对回复进行回复;默认 0 */
    @ApiModelProperty(value = "回复类型:0-针对评论进行回复,1-针对回复进行回复;默认 0",  example = "0")
    private Integer replyType;
    /** 被回复人ID */
    @ApiModelProperty(value = "被回复人ID",  example = "0")
    private Long replyUserId;
    /** 被回复人名称 */
    @ApiModelProperty(value = "被回复人名称",  example = "xxx")
    private String replyUserName;

}
